
export class AreaCsItemModel {
    type: number //类型
    s: number //状态
    pID: string //占领ID
    bID: string//战斗ID
    t: number //时间
    sID: number //服务器ID
    constructor(opts: any = {}) {
        this.type = opts.type || 0
        this.s = opts.s || 0
        this.pID = opts.pID || ""
        this.bID = opts.bID || ""
        this.t = opts.t || 0
        this.sID = opts.sID || 0
    }
}

export class AreaCsModel {
    areaCsList: AreaCsItemModel[]
    areaCsLvl: number
    day: number
    constructor(opts: any = {}) {
        this.day = opts.day || 0
        this.areaCsList = opts.areaCsList || []
        for (let i = 1; i <= 1000; i++) {
            let item = this.areaCsList[i]
            this.areaCsList[i] = new AreaCsItemModel(item)
        }
        this.areaCsLvl = opts.areaCsLvl || 0
    }
}
